﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class admin_LWMakeAdm : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (null == Session["admin"])
        {
            Response.Write("<script>alert('请登录！');window.location.href='SysLogin.aspx';</script>");
        }
    }
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int iwid=Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
        SqlDataSource4.DeleteCommand="delete from lwclass where lwcid="+iwid+"";
    }
    protected void DetailsView1_DataBound(object sender, EventArgs e)
    {
       
    }
}
